import React from 'react';
import { BrowserRouter, Switch, Route } from 'react-router-dom';

import Login from './pages/Login';
import Admin from './pages/Admin';

import './App.less';


export default function App() {

    return (
        <div className="app">
            <BrowserRouter>
                <Switch>
                    <Route path="/login" component={Login} />
                    <Route path="/" component={Admin} />
                </Switch>
            </BrowserRouter>
        </div>
    )
}
